<?php
class dao_banco
{
	//-----------------------------------------------------------------------------------
	//---- banco ---------------------------------------------------------------------
	//-----------------------------------------------------------------------------------
	
	function get_listado_bancos($where=null){
	$sql='';
	if(isset($where)){
		$sql = "select cod_banco, nombre from banco WHERE {$where} order by nombre";
				
				
	}
	else{
		$sql = "select cod_banco, nombre from banco order by nombre";
	}
	return consultar_fuente($sql);		
	}
	
	function get_bancos(){
		$sqsl='';
		$sql="select * from banco order by nombre";
		return consultar_fuente($sql);
	}	
}
?>
